Server_Detected = call compile preprocessFile "scripts\common.sqf";

private ["_markerName", "_markerPos"];

If (X_Client) then {
	_markerName = X_MHQ_Marker;
	If ( (count _this) > 0 ) then {
		If (typename (_this select 0) == "STRING") then {
			_markerName = _this select 0;
		}
	};
	_markerPos = getMarkerPos _markerName;
	If (((_markerPos select 0) == 0) && ((_markerPos select 1) == 0) && ((_markerPos select 2) == 0)) then {
		hint Format["The marker %1 is unavailable", _markerName];
	} else {
		If (vehicle player != player) then {
			hint "You are inside a vehicle and cannot teleport!";
		} else {
			titleCut ["", "BLACK FADED", 100];
			sleep 1.5;
			(vehicle player) setpos [(_markerPos select 0), (_markerPos select 1),(_markerPos select 2)];	
			titleCut ["", "BLACK IN", 2];
		};
	};

};
